package com.mico.example.springboot.mybatis.service.impl;


import com.mico.example.springboot.mybatis.dao.UserMapper;
import com.mico.example.springboot.mybatis.domain.User;
import com.mico.example.springboot.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by micocube
 * ProjectName: springboot-example
 * PackageName: com.mico.example.springboot.jpa.service.impl
 * User: micocube
 * Email: ldscube@gmail.com
 * CreateTime: 2019/2/25下午1:52
 * ModifyTime: 2019/2/25下午1:52
 * Version: 0.1
 * Description:
 **/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userDao;

    @Override
    public User findById(Integer id){
        return userDao.selectByPrimaryKey(id);
    }

}
